package com.open.capacity.task.dao;

import com.open.capacity.common.model.SysTask;
import com.open.capacity.task.model.TaskPublishLog;

import java.util.List;
import java.util.Map;

public interface TaskDao {
    Integer findTaskCounts();   //查询任务总量

    Integer publishTask(Map<String, String> task);

    Integer updateTask(Map<String,String> sysTask);

    void logPublish(TaskPublishLog log);

    Integer addTaskType(Map<String, String> taskType);

    Map findTaskType(String type);

    Integer addTaskLevel(Map<String, Object> type);

    Map findTaskLevel(String type);

    Integer updateTaskLevel(Map<String, Object> type);

    Integer updateTaskType(Map<String, String> taskType);

    List<SysTask> findTasks(Map<String, Object> conditions);

    int count(Map<String, Object> conditions);
}
